
#ifndef __MY_HARDWARE_H_
#define __MY_HARDWARE_H_

#define self_power      0
#define USB_BUS_SENSE   1

#include <p18f4550.h>

//#define PTR_BASE WORD	
#define	__attribute__(a)
#define ROM               rom
#define strcpypgm2ram(a, b)    strcpypgm2ram(a,(far rom char*)b)

/* Valid Options: 8, 16, 32, or 64 bytes. */
#define EP0_BUFF_SIZE    8

#define USB_MAX_EP_NUMBER    1

#include "GenericTypeDefs.h"
#include "USB/usb_device.h"
#include "USB/usb.h"
#include "USB/usb_function_generic.h"

#define U1ADDR UADDR
#define U1IE UIE
#define U1IR UIR
#define U1EIR UEIR
#define U1EIE UEIE
#define U1CON UCON
#define U1EP0 UEP0
#define U1CONbits UCONbits
#define U1EP1 UEP1
#define U1CNFG1 UCFG
#define U1STAT USTAT
#define U1EP0bits UEP0bits

#endif

